import axios from '@/netWork/axios'

// 首页数据
export const homeData=()=>{
      return axios.request({
            url:'home/multidata',
            method:'get',
      })
}

// 流行数据
export const queryFashionData=(id)=>{
      return axios.request({
            url:'home/pop',
            method:'get',
            params:{id}
      })
}
// 新款数据
export const queryNewStyleData=(id)=>{
      return axios.request({
            url:'home/news',
            method:'get',
            params:{id}
      })
}
// 精选数据、
export const queryChoicenessData=(id)=>{
      return axios.request({
            url:'home/sell',
            method:'get',
            params:{id}
      })
}
// 详情页数据
export const queryDateilData=(goodsId)=>{
      return axios.request({
            url:'detail',
            method:'get',
            params:{goodsId}
      })
}

// 热门推荐
export const queryRecommendData=()=>{
      return axios.request({
            url:'detail/recommend',
            method:'get',
            
      })
}


// 分类标题
export const queryCategoryTitleDatat=()=>{
      return axios.request({
            url:'category/title',
            method:'get',
            
      })
}


//分类数据
export const queryCategoryItemDatat=(maitKey)=>{
      return axios.request({
            url:'category/item',
            method:'get',
            params:{maitKey}
      })
}